package com.jinrui.base;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.ym.log.AbstractMyLog;


public class MyLog extends AbstractMyLog{
	private static Log logger;

	public MyLog(String author, Class logClass) {
		super(author, logClass);	
		logger = LogFactory.getLog(logClass);
	}

	@Override
	public void info(String msg) {
		logger.info(msg);
	}

	@Override
	public void debug(String msg) {
		logger.debug(msg);
	}

	@Override
	public void debug(String msg, Throwable e) {
		logger.debug(msg, e);
	}

	@Override
	public void error(String msg, Throwable e) {
		logger.error(msg,e);
	}

	@Override
	public void warn(String msg) {
		logger.warn(msg);
		
	}

	@Override
	public void warn(String msg, Throwable e) {
		logger.warn(msg,e);
	}
}
